package com.cip.admin.service;

import java.util.List;
import java.util.Locale;

import javax.mail.MessagingException;

import com.cip.admin.model.EmailConfig;

public interface EmailService {
	
	 Boolean sendEmail(String recipients, String body, String subject)throws MessagingException; 
	 
	 List<EmailConfig>  getAllEmaillConfigList() throws Exception;
		
	 EmailConfig getEmailConfigById(int id) throws Exception;
	 
	 String getEmailConfigGridList(Locale locale)throws Exception;
	 	
	 EmailConfig saveOrUpdateEmailConfig(EmailConfig emailConfig) throws Exception;
	 	
	 EmailConfig editEmaillConfig(EmailConfig emailConfig) throws Exception;
	
}